﻿@using Yyyg.Models;
@using Yyyg.BLL;
@{
    Layout = "~/Views/Shared/_LayoutAbout.cshtml";
}
@model Yyyg.WebUI.Models.GoodAboutVM
@section head{
    <link href="~/Content/home-goodabout.css?@Tools.GetRandMax()" rel="stylesheet" />
}
<span id="rhid" style="display:none;" data-rhid="@Model.Rushinfo.Id"></span>
<div class="content">
    <div class="gtit">
        <h1 id="tit">@Model.Info.Title</h1>
        <p class="blkfont">@Model.Info.Brin</p>
    </div>
    <div class="barbx">
        <div>
            <span style="color:red;font-size:1.3rem">1金币</span>
            <span class="blkfont">期号 <span id="qh">@Model.Rushinfo.Per_num</span></span>
            <span class="minfont">每满总需人次，即抽取1人获得该商品</span>
        </div>
        <div>
            <div>
                <div class="layui-progress layui-progress-big" lay-showPercent="yes">
                    <div class="layui-progress-bar layui-bg-orange" lay-percent="@Model.Rushinfo.NowPercentage()%"></div>
                </div>
                <div class="zrb">
                    <span>总需人次<span class="allneed">@Model.Rushinfo.All_told</span></span>
                    <span>剩余人次<span class="remneed">@Model.Rushinfo.Rem</span></span>
                </div>
            </div>
        </div>
        <div>
            <div>
                参与
                <div class="input-nud">
                    <button>-</button>
                    <input id="bycount" value="1" min="1" max="@Model.Rushinfo.Rem" type="number" />
                    <button>+</button>
                </div>
                人次
            </div>
        </div>
    </div>
    <div>
        <button id="bynow" class="layui-btn layui-btn-lg layui-btn-danger">立即云购</button>
        <button id="addcar" class="layui-btn layui-btn-lg layui-btn-warm iconfont icon-tianjiadaogouwuche">加入购物车</button>
        <button data-gid="@Model.Info.Gid" style="width:80px" id="btn-fav" class="layui-btn-lg favorite layui-btn layui-btn layui-btn-normal"><i style="font-size:1.4rem" class="layui-icon layui-icon-star"></i> </button>
    </div>
    <style>
    </style>
    <div class="myyg">
        @if (!Request.IsAuthenticated)
        {
            <p class="login">请先<a href="/UserLogin/Login">登录</a>后查看云购码</p>
        }
        else
        {
            <a class="golok" href="javascript:void(0)" onclick="Tools.showRobnums(@(Model.Rushinfo.Id));">查看我的云购码>></a>
        }
    </div>
</div>

@section tab1_title{商品详情}
@section tab1_content{
    <div class="tab1">
        @foreach (var src in Model.DetUrls)
        {
            <img src="@src" />
        }
        <div class="minfont btmtxt">
            重要说明：<br />
            1、本商品由第三方提供；<br />
            2、以上详情页面展示信息仅供参考，商品以实物为准；<br />
            3、如快递无法配送至获得者提供的送货地址，将默认配送到距离最近的送货地，由获得者本人自提。
        </div>
    </div>
}
